
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module knife</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong>knife</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/media/sf_svns/occams/trunk/knife/knife.py">/media/sf_svns/occams/trunk/knife/knife.py</a></font></td></tr></table>
    <p><tt>Occam's&nbsp;knife&nbsp;(rapid&nbsp;recursive&nbsp;spectral&nbsp;learning)<br>
(c)&nbsp;2012,&nbsp;Tim&nbsp;Menzies,&nbsp;tim@menzies.us,&nbsp;LGPL&nbsp;v3.0<br>
Cropping&nbsp;complexity,&nbsp;culling&nbsp;confusion,&nbsp;and&nbsp;cutting&nbsp;the&nbsp;crap&nbsp;since&nbsp;2012<br>
&nbsp;&nbsp;&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.----------------._________________<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|=()=========---&nbsp;&nbsp;\-----------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`\&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;jgs&nbsp;&nbsp;\_________________/^^^^^^^^^^^^^^^^^^<br>
&nbsp;<br>
This&nbsp;program&nbsp;is&nbsp;free&nbsp;software:&nbsp;you&nbsp;can&nbsp;redistribute&nbsp;it&nbsp;and/or&nbsp;modify<br>
it&nbsp;under&nbsp;the&nbsp;terms&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;as&nbsp;published&nbsp;by<br>
the&nbsp;Free&nbsp;Software&nbsp;Foundation,&nbsp;either&nbsp;version&nbsp;3&nbsp;of&nbsp;the&nbsp;License,&nbsp;or<br>
(at&nbsp;your&nbsp;option)&nbsp;any&nbsp;later&nbsp;version.<br>
&nbsp;<br>
This&nbsp;program&nbsp;is&nbsp;distributed&nbsp;in&nbsp;the&nbsp;hope&nbsp;that&nbsp;it&nbsp;will&nbsp;be&nbsp;useful,<br>
but&nbsp;WITHOUT&nbsp;ANY&nbsp;WARRANTY;&nbsp;without&nbsp;even&nbsp;the&nbsp;implied&nbsp;warranty&nbsp;of<br>
MERCHANTABILITY&nbsp;or&nbsp;FITNESS&nbsp;FOR&nbsp;A&nbsp;PARTICULAR&nbsp;PURPOSE.&nbsp;&nbsp;See&nbsp;the<br>
GNU&nbsp;General&nbsp;Public&nbsp;License&nbsp;for&nbsp;more&nbsp;details.<br>
&nbsp;<br>
You&nbsp;should&nbsp;have&nbsp;received&nbsp;a&nbsp;copy&nbsp;of&nbsp;the&nbsp;GNU&nbsp;General&nbsp;Public&nbsp;License<br>
along&nbsp;with&nbsp;this&nbsp;program.&nbsp;&nbsp;If&nbsp;not,&nbsp;see&nbsp;&lt;<a href="http://www.gnu.org/licenses/">http://www.gnu.org/licenses/</a>&gt;.</tt></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="math.html">math</a><br>
</td><td width="25%" valign=top><a href="random.html">random</a><br>
</td><td width="25%" valign=top><a href="re.html">re</a><br>
</td><td width="25%" valign=top><a href="sys.html">sys</a><br>
</td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-eg1"><strong>eg1</strong></a>(file<font color="#909090">='data/weather.csv'</font>)</dt></dl>
 <dl><dt><a name="-eg2"><strong>eg2</strong></a>(file<font color="#909090">='data/autompg100K.csv'</font>)</dt><dd><tt>Testing&nbsp;loading&nbsp;100,000&nbsp;instances.&nbsp;Takes&nbsp;a&nbsp;few&nbsp;secs.</tt></dd></dl>
 <dl><dt><a name="-eg3"><strong>eg3</strong></a>(file<font color="#909090">='data/sizes.csv'</font>)</dt><dd><tt>Spliting&nbsp;data&nbsp;into&nbsp;a&nbsp;tree&nbsp;of&nbsp;tables:&nbsp;on&nbsp;very&nbsp;simple&nbsp;data.</tt></dd></dl>
 <dl><dt><a name="-eg4"><strong>eg4</strong></a>()</dt><dd><tt>Spliting&nbsp;data&nbsp;into&nbsp;a&nbsp;tree&nbsp;of&nbsp;tables:&nbsp;on&nbsp;more&nbsp;complex&nbsp;data.</tt></dd></dl>
 <dl><dt><a name="-eg5"><strong>eg5</strong></a>(file<font color="#909090">='data/albrecht.csv'</font>)</dt><dd><tt>Comparing&nbsp;boring&nbsp;old&nbsp;nearest&nbsp;neighbor&nbsp;vs&nbsp;NN&nbsp;or&nbsp;the&nbsp;leaf&nbsp;cluster<br>
nearer&nbsp;the&nbsp;test&nbsp;isntance&nbsp;via&nbsp;a&nbsp;LOO&nbsp;study.&nbsp;Boring&nbsp;wins,&nbsp;I&nbsp;suspect<br>
since&nbsp;this&nbsp;data&nbsp;set&nbsp;is&nbsp;so&nbsp;small&nbsp;that&nbsp;spectral&nbsp;learning&nbsp;cannot&nbsp;find<br>
interesting&nbsp;structures.&nbsp;Next&nbsp;step:&nbsp;all&nbsp;the&nbsp;other&nbsp;reductions!</tt></dd></dl>
</td></tr></table>
</body></html>